package cn.humaohua.study.yanmo_design_pattern.ch24.v2;

/**
 * Created by hmh on 09/01/2018.
 */
public class AbstractMessage {
    protected MessageImplementor impl;

    public AbstractMessage(MessageImplementor impl) {
        this.impl = impl;
    }

    public void sendMessage(String message, String toUser) {
        this.impl.send(message, toUser);
    }
}
